package com.leo.controller;

import com.leo.entity.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by LEO on 2017/9/16.
 */
@RestController
public class TestController {
    @RequestMapping("/user")
    public User thing() {
        User user =  new User() ;
        user.setId(2);
        user.setName("姓名");
        user.setAge(20);
        return  user ;
    }
}
